<?php
/**
 * Metadata Dao definition
 *
 * @author fusq
 * @since 2009-03-25
 */

require_once BaseUtil::getModulePath ( "base" ) . '/models/BaseDao.php';

class ColorDao extends BaseDao {
	
	protected $_name;
	
	protected $metadataGroup;
	
	protected $metadataSet;
	
	public function _setup() {
		$this->_name = $this->prefix () . "colors";
		parent::_setup ();
	}
	
	public function getColors() {
		return $this->db_r->fetchAll ( "select 	*
    									from 	$this->_name 
    									where 	is_delete = 0
    									order	by sort_order" );
	}

}